package com.crealth.db;

import java.util.List;

import com.crealth.manager.MybatisManager;
import com.crealth.model.EventRemindModel;

public class EventRemindDb {

	public static Long insertEventRemind(EventRemindModel eventRemind) {
		Long res = MybatisManager.eventRemindMapper.insertEventRemind(eventRemind);
		MybatisManager.commit();
		
		return res;
	}
    
    public static List<EventRemindModel> selectEventRemindByUserID(int userID) {
    	List<EventRemindModel> res = MybatisManager.eventRemindMapper.selectEventRemindByUserID(userID);
    	
    	return res;
    }
    
    public static List<EventRemindModel> selectAllEventRemind() {
    	List<EventRemindModel> res = MybatisManager.eventRemindMapper.selectAllEventRemind();
    	
    	return res;
    }
	
}
